/*
 * @Descripttion: 
 * @version: 
 * @Author: jinzhuo
 * @LastEditors: Andy
 * @LastEditTime: 2022-12-18 15:50:40
 */
// 基础静态数据类型
const num: number = 1
const str: string = 'string'
// null-undefined-void等

//对象类型 -对象、数组、类、函数
const obj : {
    name:string,
    age: number
} = {
    name: "jinzhuo",
    age: 12
}
const obj2 = {
    name:"jinzhuo"
}
obj2.name = "1"
console.log(obj.age)
console.log(obj2.name)

const arr:string[] =["1","2"]

class person{}
const per : person = person

const fc : ()=> string=()=>{
    let str = "这是函数类型"
    console.log(str)
    return str
}
// fc()
export{}
